SiopOpenId4Vp

An interface providing support for handling an OAUTH2 request that represents either an SIOP authentication request, or an OpenId4VP authorization request or a combined SIOP & OpenId4VP request.

To obtain an instance of SiopOpenId4Vp, method invoke can be used.

See also

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open suspend fun dispatch(request: ResolvedRequestObject, consensus: Consensus, encryptionParameters: EncryptionParameters?): DispatchOutcome

Assembles an appropriate authorization response given a request and holder's consensus and then dispatches it to the verifier.

Link copied to clipboard
open suspend fun dispatchError(error: AuthorizationRequestError, errorDispatchDetails: ErrorDispatchDetails, encryptionParameters: EncryptionParameters?): DispatchOutcome
Link copied to clipboard
abstract suspend fun encodeRedirectURI(request: ResolvedRequestObject, consensus: Consensus, encryptionParameters: EncryptionParameters? = null): DispatchOutcome.RedirectURI

Method forms a suitable authorization response, based on the request and the provided consensus, and then encodes this response to a URI. To this URI, the wallet (caller) must redirect its authorization response

abstract suspend fun encodeRedirectURI(error: AuthorizationRequestError, errorDispatchDetails: ErrorDispatchDetails, encryptionParameters: EncryptionParameters?): DispatchOutcome.RedirectURI

Method forms a suitable authorization response, based on the error and the provided errorDispatchDetails, and then encodes this response to a URI. To this URI, the wallet (caller) must redirect its authorization response

Link copied to clipboard
abstract suspend fun post(request: ResolvedRequestObject, consensus: Consensus, encryptionParameters: EncryptionParameters? = null): DispatchOutcome.VerifierResponse

Method forms a suitable authorization response, based on the request and the provided consensus, then post it to the Verifier's end-point and returns his response.

abstract suspend fun post(error: AuthorizationRequestError, errorDispatchDetails: ErrorDispatchDetails, encryptionParameters: EncryptionParameters?): DispatchOutcome.VerifierResponse

Method forms a suitable authorization response, based on the error and the provided errorDispatchDetails, then post it to the Verifier's end-point and returns his response.

Link copied to clipboard
abstract suspend fun resolveRequestUri(uri: String): Resolution

Tries to validate and request the provided uri into a ResolvedRequestObject.